package light.head.dao.inv;

import java.util.List;

import light.head.framework.base.BaseDAO;
import light.head.model.inv.InvReturnDetail;

import org.springframework.stereotype.Service;
@Service
public class InvReturnDetailDAO extends BaseDAO<InvReturnDetail, Integer>{
	private final static String sql_findByRic = "FROM InvReturnDetail ird WHERE ird.deleted = 0 AND ird.ric = ?";
	/**
	 * 通过零售单编号获取序列号
	 * @param isc			零售单编号
	 */
	public List<InvReturnDetail> findByRic(Integer ric) {
		if (null == ric) return null;
		return find(sql_findByRic, null, null, ric);
	}
}
